﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.Paint.DisplayCoverage.CUiPaintDisplayCoverageCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Windows;
using System.Windows.Forms.Integration;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.Paint.DisplayCoverage;

public class CUiPaintDisplayCoverageCmd : TxButtonCommand
{
  private CUiPaintDisplayCoverageEnabler m_MeshEnabler;

  public CUiPaintDisplayCoverageCmd()
  {
    this.m_MeshEnabler = new CUiPaintDisplayCoverageEnabler();
    CUiPaintDisplayCoverageUtil.InitRegistryManager((ITxCommand) this);
  }

  public virtual string Category => PaintDisplayCoverageResource.CMD_CATEGORY;

  public virtual string Name => PaintDisplayCoverageResource.CMD_NAME;

  public virtual string Tooltip => PaintDisplayCoverageResource.CMD_TOOLTIP;

  public virtual string Description => PaintDisplayCoverageResource.CMD_DESCRIPTION;

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_MeshEnabler;

  public virtual string Bitmap => "Paint.DisplayCoverage.Resources.displaycoverage.bmp";

  public virtual string LargeBitmap => "Paint.DisplayCoverage.Resources.displaycoverage_big.png";

  public virtual ITxImage Image
  {
    get => (ITxImage) TxImageManager.GetImageByKey("PaintAndCoverageSettings");
  }

  public virtual void Execute(object cmdParams)
  {
    CUiPaintDisplayCoverageWindow displayCoverageWindow = new CUiPaintDisplayCoverageWindow();
    ElementHost.EnableModelessKeyboardInterop((Window) displayCoverageWindow);
    ((Window) displayCoverageWindow).Show();
  }
}
